/**
 * 
 */
package com.ubo.visu.util;

import javafx.application.Platform;

/**
 * @author saludegu
 * 
 */
public class FxUtil {

	/**
	 * Execute un runnable sur le thread JavaFX.
	 * 
	 * @param runnable
	 */
	public static void runOnFx(Runnable runnable) {
		if (Platform.isFxApplicationThread()) {
			runnable.run();
		} else {
			Platform.runLater(runnable);
		}
	}
}
